package manager.categories.vo;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;
@Data
@Table(name = "tb_category")
public class CategoryVO implements Serializable{
    private String id;
    @Transient
    private Object[] ids;
    @Column(name = "parent_id")
    private String parentId;
    @Column(name = "name")
    private String name;
    @Column(name = "is_parent")
    private boolean isParent;
    @Column(name = "is_channel")
    private boolean isChannel;
    @Column(name = "sort")
    private String sort;
    @Transient
    private List<CategoryVO> children;
}
